import Vue from 'vue'

import Router from 'vue-router'

import Home from '../components/Home'
import VisitNum from '../components/VisitNum'
import Integral from '../components/other/integral'
import Login from '../components/Login'

import allMember from '../components/member/allList'
import visitorList from '../components/member/visitorList'
import MemberList from '../components/member/List'
import MemberDetail from '../components/member/Detail'
import SuperCompany from '../components/member/SuperCompanyList'
import StoreList from '../components/member/StoreList'
import StoreDetail from '../components/member/StoreDetail'
import CommerceList from '../components/member/CommerceList'
import CommerceDetail from '../components/member/CommerceDetail'

import ProcurementList from '../components/procurement/List'
import ProcurementPushList from '../components/procurement/PushList'
import ProcurementDetail from '../components/procurement/Detail'

import JobList from '../components/job/List'
import JobDetail from '../components/job/Detail'

import ActivityList from '../components/activity/List'
import ActivityRecommendList from '../components/activity/RecommendList'
import ActivityDetail from '../components/activity/Detail'
import ProductList from '../components/product/List'
import ProductDetail from '../components/product/Detail'
import RefundOrder from '../components/order/RefundOrderList'

import ProjectList from '../components/project/List'
import ProjectDetail from '../components/project/Detail'

import ExpertList from '../components/expert/List'
import ExpertDetail from '../components/expert/Detail'

import NewsListOfMember from '../components/news/ListOfMember'
import NewsListOfCompany from '../components/news/ListOfCompany'
import NewsListOfCommerce from '../components/news/ListOfCommerce'

import NewsDetailOfMember from '../components/news/DetailOfMember'
import NewsDetailOfCompany from '../components/news/DetailOfCompany'
import NewsDetailOfCommerce from '../components/news/DetailOfCommerce'

import CompanyAuthList from '../components/company/AuthList'
import CompanyAuthDetail from '../components/company/AuthDetail'
import AccountSubordinateAccount from '../components/account/SubordinateAccount'

import SupermanList from '../components/superman/List'

import CommissionList from '../components/commission/List'
import DrawCashList from '../components/drawCash/List'

import Jishitong from '../components/other/jishitong'
import OrderConfig from '../components/systemConfig/OrderConfig'
import complain from '../components/systemConfig/complain'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Home,
      meta: { requiresAuth: true }
    },
	{
      path: '/jishitong',
      component: Jishitong,
      meta: { requiresAuth: true }
    },
	{
	  path: '/visitNum',
	  component: VisitNum,
	  meta: { requiresAuth: true }
	},
	{
	  path: '/integral',
	  component: Integral,
	  meta: { requiresAuth: true }
	},
    {
      path: '/login',
      component: Login
    },
    {
      path: '/login/:f',
      component: Login
    },
    {
      path: '/allMember',
      component: allMember,
      meta: { requiresAuth: true },
    },
    {
      path: '/visitor',
      component: visitorList,
      meta: { requiresAuth: true },
    },
    {
      path: '/member',
      component: MemberList,
      meta: { requiresAuth: true },
    },
    {
      path: '/store',
      component: StoreList,
      meta: { requiresAuth: true },
    },
    {
      path: '/member/storeDetail/:storeId',
      component: StoreDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/commerce',
      component: CommerceList,
      meta: { requiresAuth: true },
    },
    {
      path: '/member/commerceDetail/:id',
      component: CommerceDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/superCompany',
      component: SuperCompany,
      meta: { requiresAuth: true },
    },
    {
      path: '/member/detail/:accountId',
      component: MemberDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/procurement',
      component: ProcurementList,
      meta: { requiresAuth: true },
    },
    {
      path: '/procurement/detail/:procurementId',
      component: ProcurementDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/procurement/pushList',
      component: ProcurementPushList,
      meta: { requiresAuth: true },
    },
    {
      path: '/job',
      component: JobList,
      meta: { requiresAuth: true },
    },
    {
      path: '/job/detail/:jobId',
      component: JobDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/activity',
      component: ActivityList,
      meta: { requiresAuth: true },
    },
    {
      path: '/activityRecommendList',
      component: ActivityRecommendList,
      meta: { requiresAuth: true },
    },
    {
      path: '/activity/detail/:activityId',
      component: ActivityDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/product',
      component: ProductList,
      meta: { requiresAuth: true },
    },
    {
      path: '/product/detail/:productId',
      component: ProductDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/refundOrder',
      component: RefundOrder,
      meta: { requiresAuth: true },
    },
    {
      path: '/project',
      component: ProjectList,
      meta: { requiresAuth: true },
    },
    {
      path: '/project/detail/:projectId',
      component: ProjectDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/expert',
      component: ExpertList,
      meta: { requiresAuth: true },
    },
    {
      path: '/expert/detail/:expertId',
      component: ExpertDetail,
      meta: { requiresAuth: true },
    },
    {
      path: '/news/listOfMember',
      component: NewsListOfMember,
      meta: { requiresAuth: true },
    },
    {
      path: '/news/detailOfMember/:newsId',
      component: NewsDetailOfMember,
      meta: { requiresAuth: true },
    },
    {
      path: '/news/listOfCompany',
      component: NewsListOfCompany,
      meta: { requiresAuth: true },
    },
    {
      path: '/news/detailOfCompany/:newsId',
      component: NewsDetailOfCompany,
      meta: { requiresAuth: true },
    },
    {
      path: '/news/listOfCommerce',
      component: NewsListOfCommerce,
      meta: { requiresAuth: true },
    },
    {
      path: '/news/detailOfCommerce/:newsId',
      component: NewsDetailOfCommerce,
      meta: { requiresAuth: true },
    },
    {
      path: '/company/authList',
      component: CompanyAuthList,
      meta: { requiresAuth: true },
    },
    {
      path: '/company/authDetail/:accountId',
      component: CompanyAuthDetail,
      meta: { requiresAuth: true },
    },

  	{
  	  path: '/account/SubordinateAccount',
  	  component: AccountSubordinateAccount,
  	  meta: { requiresAuth: true },
  	},
    {
      path: '/superman',
      component: SupermanList,
      meta: { requiresAuth: true },
    },
    {
      path: '/commission',
      component: CommissionList,
      meta: { requiresAuth: true },
    },
    {
      path: '/drawCash',
      component: DrawCashList,
      meta: { requiresAuth: true },
    },
    {
      path: '/systemConfig/OrderConfig',
      component: OrderConfig,
      meta: { requiresAuth: true },
    },
    {
      path: '/systemConfig/complain',
      component: complain,
      meta: { requiresAuth: true },
    },

  ]
})
